<!DOCTYPE html>
<html>
<head lang="en">
    <meta charset="UTF-8">
    <meta name="viewport" content="width=divice-width,initial-scale=1.0,maximum-scale=1.0,minimum-scale=1.0,user-scalable=no"/>
    <!-- 加上以下语句可使网页在苹果设备上运行更好 -->
    <meta name="format-detection" content="telephone=no" />
    <meta name="apple-mobile-web-app-capable" content="yes" />
    <meta name="apple-mobile-web-app-status-bar-style" content="black" />
    <meta content="black" name="apple-mobile-web-app-status-bar-style" />
    <title>新闻</title>
    <link rel="stylesheet" href="../css/bootstrap.min.css">
    <link rel="stylesheet" href="../css/style.css">
    <style>
        .qrcode-wrap>img{display: block;width: 70%;margin: 0 auto;}
    </style>
</head>
<body>
    <div class="content">

        <%if(news.content){%>
           <%-news.content%>
        <%}else{%>

        <%}%>

        <div class="qrcode-wrap">
                <img src="" id="qrcodeImg">
        </div>
    </div>

<script>
    <%if(qrcode){%>
    var IOSqrcodeSrc = '<%=qrcode.iosCode%>';
    var andqrcodeSrc = '<%=qrcode.andCode%>';
    var qrcodeImg = document.getElementById('qrcodeImg');
    window.onload = function () {
        var u = navigator.userAgent;
        if (u.indexOf('Android') > -1 || u.indexOf('Linux') > -1) {//安卓手机
            qrcodeImg.src = andqrcodeSrc;
        } else if (u.indexOf('iPhone') > -1) {//苹果手机
            qrcodeImg.src = IOSqrcodeSrc;
        }
    }
        <%}%>
</script>

</script>
</body>
</html>